package com.dog.basics.api.controller.mtkj;


import com.dog.basics.bean.vo.admin.mtkj.ConfigVo;
import com.dog.basics.common.constant.SwaggerConstants;
import com.dog.basics.common.util.R;
import com.dog.basics.security.annotation.Inner;
import com.dog.basics.service.mtkj.IMtDeviceConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 设备管理配置信息 前端控制器
 * </p>
 *
 * @author wph
 * @since 2020-09-29
 */
@RestController
@RequestMapping("/api/device/config")
@Api(value = "设备管理配置信息", tags = SwaggerConstants.API_ALL)
@AllArgsConstructor
public class MtDeviceConfigController {
    private final IMtDeviceConfigService mtDeviceConfigService;

    /**
     * @Description: 设备管理配置信息列表
     * @Param: ConfigFromDto
     * @return: IPage<ConfigVo>
     * @Author: wph
     * @Date:
     */
    @ApiOperation(value = "设备管理配置信息列表", notes = "设备管理配置信息列表", tags = {SwaggerConstants.API_HOME, SwaggerConstants.API_MY})
    @GetMapping
    @Inner
    public R<ConfigVo> page() {
        return R.ok(mtDeviceConfigService.getPageList());
    }
}
